using System;

namespace OpenWaves
{
    [Obsolete("Use HtmlEncodeOptions instead", true)]
    public enum HtmlEncodeFlags
    {
    }

    [Flags]
    public enum HtmlEncodeOptions
    {
        None = 0,
        PreserveLineBreaks = 1,
        WrapLongWords = 2,
        ActivateUrls = 4,
        PreserveFormatting = 8
    }

    static class HtmlEncodeFlagsExtensions
    {
        public static bool Contains(this HtmlEncodeOptions options, HtmlEncodeOptions option)
        {
            return (options & option) == option;
        }
    }
}